package com.webSite.demo.cy.bean;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableName;

import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HtmlUtil;

/**
 * 
* @ClassName: HomeYeWu  
* @Description: TODO(前台业务模板类)  
* @author fengzihao  
* @date 2018年5月5日  
*
 */
@TableName("home_yewu")
public class HomeYeWu implements Serializable{

	private static final long serialVersionUID = -2845192343105449296L;
	
	private long id;
	private String title;
	private String content;
	private int state;
	private Date created;
    private Date updated;
    
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getUpdated() {
		return updated;
	}
	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	public String getSubContent() {
		return StrUtil.sub(HtmlUtil.cleanHtmlTag(content), 0, 40);
	}
	@Override
	public String toString() {
		return "HomeYeWu [id=" + id + ", title=" + title + ", content=" + content + ", state=" + state + ", created=" + created + ", updated=" + updated + "]";
	}
	
}
